//
// Created on 2024/4/30.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef DIANPING_CAPI_DEMO_FLOWITEMMODEL_H
#define DIANPING_CAPI_DEMO_FLOWITEMMODEL_H
#include "Model/ViewModel.h"
#include "common/Size.h"
#include <string>

class FlowItemViewModel : public ViewModel{
private:
    static int id;
    std::string text;
    std::string image;
public:
    FlowItemViewModel():ViewModel(FLOW_ITEM_VIEW_MODEL){
        text = "testing " + std::to_string(id);
        image = "http://127.0.0.1:8000/image-1.svg";
        FlowItemViewModel::id++;
    }
    std::string getText(){return text;}
    std::string getImage(){return image;}
};

#endif //DIANPING_CAPI_DEMO_FLOWITEMMODEL_H
